From 9b9fb4d7a33ad95b1ab8946d406cc08f60230c92 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 2 Dec 2020 10:20:07 -0800 Subject: [PATCH] macos: place above transient-for when presenting We need to re-attach to the transient-for window whenever we present or we risk getting placed behind the window by the display server. Apparently that setting does not persist across a hide of the NSWindow. --- gdk/macos/gdkmacostoplevelsurface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdk/macos/gdkmacostoplevelsurface.c b/gdk/macos/gdkmacostoplevelsurface.c index 05d88ba94f..7af4725b35 100644 --- a/gdk/macos/gdkmacostoplevelsurface.c +++ b/gdk/macos/gdkmacostoplevelsurface.c @@ -100,6 +100,8 @@ _gdk_macos_toplevel_surface_present (GdkToplevel *toplevel, g_assert (GDK_IS_MACOS_TOPLEVEL_SURFACE (self)); g_assert (GDK_IS_MACOS_WINDOW (nswindow)); + _gdk_macos_toplevel_surface_attach_to_parent (self); + style_mask = [nswindow styleMask]; monitor = gdk_display_get_monitor_at_surface (display, surface); -- 2.30.2